package br.com.unip.menudroidweb.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name="formapagamento")
@NamedQueries(value={
		@NamedQuery(name="FormaPagamento.buscarPorDescricao", query="select f from FormaPagamento f where f.descricao = :descricao")		
})
public class FormaPagamento implements Serializable {
	private static final long serialVersionUID = -1301308460687039534L;
	
	public static final String FORMA_PAGAMENTO_BUSCAR_POR_DESCRICAO = "FormaPagamento.buscarPorDescricao";

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int idFormaPagamento;

	@Column(length=100)
	private String descricao;
	
	public FormaPagamento() {
		
	}
	
	public int getIdFormaPagamento() {
		return idFormaPagamento;
	}
	public void setIdFormaPagamento(int idFormaPagamento) {
		this.idFormaPagamento = idFormaPagamento;
	}
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	
}
